package com.weitu.workflow.definition.mapper;

import com.weitu.permission.department.entity.Department;
import com.weitu.workflow.definition.entity.WorkFlowDefinition;
import org.apache.ibatis.annotations.Param;
import org.fireflow.engine.definition.WorkflowDefinitionInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface WorkflowDefMapper {

    /***
     * 查询工作流定义数量
     * @return
     */
    public int queryWorkflowDefCount(Map<String,Object> paramMap);

    /***
     * 查询工作流定义集合
     * @return
     */
    public List<WorkflowDefinitionInfo> queryWorkflowDefList(Map<String,Object> paramMap);

    /**
     *查询工作流定义集合（用于数据表格显示，返回自定义的工作流类型）
     * @param paramMap
     * @return
     */
    public List<WorkFlowDefinition> queryWorkFlowDefTableList(Map<String,Object> paramMap);

}

